package com.ayou.eggguard.farm.controller;

import com.ayou.common.utils.Result;
import com.ayou.eggguard.farm.service.ChickenShedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/chickenShed")
public class ChickenShedController {

    @Autowired
    private ChickenShedService chickenShedService;

    @GetMapping("/getShedAlarmRate")
    private Result<List<List<Object>>> getShedAlarmRate(){
        List<List<Object>> list=chickenShedService.getShedAlarmRate();
        return Result.success(list);
    }
}
